package com.hhkj.admin.order.controller;

import com.hhkj.admin.order.domain.OrderItem;
import com.hhkj.admin.order.model.req.OrderItemReq;
import com.hhkj.admin.order.model.res.OrderItemRes;
import com.hhkj.admin.order.service.biz.OrderItemBizService;
import com.ruoyi.common.annotation.PermissionPrefix;
import com.ruoyi.common.base.biz.controller.v2.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.valid.VList;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/order/item")
@PermissionPrefix("course:orderStudent")
public class OrderItemController extends BaseController<OrderItem, OrderItemReq, OrderItemRes, OrderItemBizService> {

    @Override
    @PostMapping("/list")
    @PreAuthorize("@ss.hasPermi(this, 'list')")
    public TableDataInfo list(@Validated(VList.class) @RequestBody OrderItemReq orderItemReq) {
        return super.list(orderItemReq);
    }
}
